<?php
  /**
   * DB connection
   */

  define('DB_HOST',           '195.211.101.111');
//  define('DB_HOST',                'localhost');
  define('USER',                   'root');
  define('PASSWORD',               'root');
  define('BASE',                   'adm.loc');
  define('DB_TABLE_PREFIX',        'j');
  define('FONT_DB_TABLE_PREFIX',   'top');

  /**
   * Root
   */

  define('DOMAIN_NAME',               str_replace('www.', '', $_SERVER['HTTP_HOST']));
  define('HTTP_SERVER',               'http://' . DOMAIN_NAME);
  define('HTTP_COOKIE_PATH',          '/');

  define('BASE_URL',         HTTP_SERVER . HTTP_COOKIE_PATH);

  define('TEMPLATES',        BASE_URL   . 'templates/');
  
  define('BACKEND_CSS',      TEMPLATES  . 'backend/css/');
  define('BACKEND_IMAGES',   TEMPLATES  . 'backend/images/');
  define('BACKEND_JS',       TEMPLATES  . 'backend/js/');
  
  
  define('FRONTEND_CSS',     TEMPLATES  . 'frontend/css/');
  define('FRONTEND_IMAGES',  TEMPLATES  . 'frontend/images/');
  define('FRONTEND_JS',      TEMPLATES  . 'frontend/js/');
  define('FRONTEND_FLASH',   TEMPLATES  . 'frontend/flash/');
  
  define('EXTERNAL',         BASE_URL  . 'external/');
  
  define('EXTERNAL_JS',      EXTERNAL  . 'javaScripts/');
  
  define('EXTERNAL_JS_RELATIVE',         'external/javaScripts/');
  
  define('WORLD_FLAGS',      BACKEND_IMAGES  . 'worldflags/');
  
  
  define('VAR_FOLDER',       BASE_URL  . 'var/');
  
  define('AJAX',             BASE_URL  . 'ajax/');

  /**
   * System Folders
   */

  define('DIR_FS_ROOT',                 dirname($_SERVER['SCRIPT_FILENAME']) . '/');

  define('DIR_INCLUDES',                DIR_FS_ROOT  . 'includes/');
  define('DIR_CORE',                    DIR_FS_ROOT  . 'core/');
  define('DIR_INTERFACES',              DIR_CORE     . 'interfaces/');
  define('DIR_LIBS',                    DIR_INCLUDES . 'libs/' );
  define('DIR_CLASSES',                 DIR_INCLUDES . 'classes/' );
  define('DIR_BLOCKS',                  DIR_INCLUDES . 'blocks/' );
  define('DIR_STATIC_CLASSES',          DIR_INCLUDES . 'static/' );
  
  define('DIR_BACKEND_CLASSES',         DIR_INCLUDES . 'blocks/backend/' );
  define('DIR_FRONTEND_CLASSES',        DIR_INCLUDES . 'blocks/frontend/' );
  define('DIR_SMARTY',                  DIR_FS_ROOT  . 'smarty/');
  define('DIR_SMARTY_COMPILE',          DIR_SMARTY   . 'templates_c');

  define('DIR_TEMPLATES',               DIR_FS_ROOT  . 'templates/');
  
  define('DIR_BACKEND_TEMPLATES',       DIR_TEMPLATES . 'backend/blocks/');
  define('DIR_FRONTEND_TEMPLATES',      DIR_TEMPLATES . 'frontend/blocks/');
  
  define('DIR_EXTERNAL',                DIR_FS_ROOT  . 'external/');
  
  define('DIR_LANGUAGES',               DIR_FS_ROOT  . 'languages/');
  define('DIR_BACKEND_LANGUAGES',       DIR_LANGUAGES  . 'backend/');
  define('DIR_FRONTEND_LANGUAGES',      DIR_LANGUAGES  . 'frontend/');

  
  define('DIR_VAR',                     DIR_FS_ROOT  . 'var/');
  define('DIR_LOGS',                    DIR_VAR      . 'logs/');
  define('DIR_VAR_WARNINGSS',           DIR_LOGS     . 'warnings/');
  define('DIR_VAR_ERRORS',              DIR_LOGS      . 'errors/');
  define('DIR_FILE_EXAMPLES',           DIR_VAR      . 'file_exmples/');
  
  define('DIR_BACKEND',                          'backend/blocks');
  define('DIR_FRONTEND',                         'frontend/blocks');

  /**
   * Language Config
   */
   
 /* define('DEFAULT_LANG_CODE',             'ru'); 
  define('DEFAULT_LANGUAGE_FILE',         'General.xml'); 
  define('MESAGES_LANGUAGE_FILE',         'Messages.xml'); */
  
  /**
   * Cookies
   */
  
  //define('COOKIES_LIFE_TIME',               '168');  //week
  
  
  /**
   * Files
   */
   
  define('CONFIG_FILE',                 'config.php');
  define('CONFIG_PATH',                 DIR_INCLUDES.CONFIG_FILE);
  define('CLASS_EXAMPLE',               DIR_FILE_EXAMPLES . 'php_class_example.xpl');
  define('TEMPLATE_EXAMPLE',            DIR_FILE_EXAMPLES . 'tpl_file_example.xpl');
  define('LANGUAGE_EXAMPLE',            DIR_FILE_EXAMPLES . 'xml_file_example.xpl');
  define('CLASS_PREFIX',                'x');
  
  /**
   * Smarty
   */
  
  define('SMARTY_VERSION',              '3.0.6');

//Z:\home\XBlocks.loc\www\templates\backend\images\debug





  require('datatables.php');
  require('functions.php');



?>